<?php
/**
 * Copyright (C) 2013  Artur Tolstenco
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

class Agenziaterritorio_Model_Fabbricato {
	private $id;
	private $rendita;
	private $possesso_perc;
	private $possesso_giorni;
	private $codice_comune;
	
	public function __construct($id, $rendita, $possesso_perc, $possesso_giorni,
								$codice_comune) {
		$this->id = $id;
		$this->rendita = $rendita;
		$this->possesso_perc = $possesso_perc;
		$this->possesso_giorni = $possesso_giorni;
		$this->codice_comune = $codice_comune;
	}

	public function toArray() {
		$array_values = array();
		
		$array_values['id'] = $this->id;
		$array_values['rendita'] = $this->rendita;
		$array_values['possesso_perc'] = $this->possesso_perc;
		$array_values['possesso_giorni'] = $this->possesso_giorni;
		$array_values['codice_comune'] = $this->codice_comune;
		
		return $array_values;
		
	}
	
	public function fromArray($array_values) {
		
	}
}

